package cn.haona.game.simb.wap.util;

import java.sql.Timestamp;
import java.util.Random;

public class Util
{

	private static Random random = new Random();
	private static long lRandomCount = 0;

	/**
	 * 得到时间戳
	 * 
	 * @param time
	 * @return
	 */
	public static Timestamp getTimestamp(long time)
	{
		Timestamp ts = null;
		ts = new Timestamp(time);
		return ts;
	}

	/**
	 * 得到随机数
	 * 
	 * @param min
	 * @param max
	 * @return
	 */
	public static int getRandomAInt(int min, int max)
	{
		lRandomCount++;
		return (min + random.nextInt(max - min));
		// return random.nextInt(max);
	}

	public static void main(String[] args)
	{

	}

}
